package com.weixing.mall.provider.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weixing.mall.provider.mapper.AfterSaleImgMapper;
import com.weixing.mall.provider.model.domain.AfterSaleImg;
import com.weixing.mall.provider.service.IAfterSaleImgService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 订单模块-售后图片表 服务实现类
 * </p>
 *
 * @author Small
 * @since 2021-08-11
 */
@Service
public class AfterSaleImgServiceImpl extends ServiceImpl<AfterSaleImgMapper, AfterSaleImg> implements IAfterSaleImgService {

    @Override
    public List<AfterSaleImg> getListByAfterId(Long afterId) {
        return baseMapper.selectList(new QueryWrapper<AfterSaleImg>().eq("after_sale_id",afterId));
    }
}
